import express from "express";
import {
  checkInviterCode,
  checkUserDataUnique,
  getUserEmail,
  getUserInfo,
  login,
  register, verifyPassword
} from '../controllers/user.js';
let router = express.Router();

router.post('/register', register);
router.post('/login', login);
router.post('/verifyPassword', verifyPassword);
router.post('/checkdata', checkUserDataUnique);
router.post('/checkcode', checkInviterCode);
router.post('/getuser', getUserInfo);
router.post('/getemail', getUserEmail);
export default router;


